package com.resolution.dietaryassessment.view.mydietary.surface;

/**
 * @author By Resolusion
 * @Title: 我的营养素评价
 * @Date: 2020/5/8
 * @Time: 11:04
 * @email Res01ution@foxmail.com
 */
public class MyIntakeAssess {
    private String nutrition;
    private float rQuantity;
    private float myQuantity;
    private String evaluate;

    public MyIntakeAssess(String nutrition,float rQuantity,float myQuantity){
        this.nutrition = nutrition;
        this.rQuantity = rQuantity;
        this.myQuantity = myQuantity;

        if (rQuantity > myQuantity) {
            evaluate = "偏低";
        }else if (rQuantity == myQuantity){
            evaluate = "正常";
        }else {
            evaluate = "偏高";
        }
    }

    public String getNutrition() {
        return nutrition;
    }

    public void setNutrition(String nutrition) {
        this.nutrition = nutrition;
    }

    public float getrQuantity() {
        return rQuantity;
    }

    public void setrQuantity(float rQuantity) {
        this.rQuantity = rQuantity;
    }

    public float getMyQuantity() {
        return myQuantity;
    }

    public void setMyQuantity(float myQuantity) {
        this.myQuantity = myQuantity;
    }

}
